package com.ym.medical.dao;

import com.ym.medical.domain.entity.TextRuleEntity;
import com.ym.medical.domain.vo.TextRuleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 图文规则Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface TextRuleDao extends Mapper<TextRuleEntity> {
    /**
     * 图文规则列表
     *
     * @return
     */
    List<TextRuleEntity> getTextRules();

    /**
     * 查询图文默认的规则
     *
     * @return
     */
    List<TextRuleEntity> selectDefaultItem();

    List<TextRuleVo> selectTextItem(@Param("userId") Long userId);

    List<TextRuleVo> selectAllTextItem(@Param("userId") Long doctorId);

    /**
     * 查询30次服务的 id
     * @return
     */
    TextRuleEntity selectRule();
}
